<div class="orders form">
<?php echo $form->create('Order');?>
	<fieldset>
  <legend><?php __('Редактировать приказ');?></legend>
	<?php
		echo $form->input('id');
		echo $form->hidden('student_id');
		echo '<b>Cтудент</b> '.$student['firstname'].' '.$student['surname'].' '.$student['lastname'].' ('.$learningforms[$student['learningform_id']].', '.$learningtypes[$student['learningtype_id']].')';
		echo ' статус - <b>'.$studentstates[$student['studentstate_id']].'</b>';
		echo '<br />';
		echo ' <b>Специальность</b> '.$professions[$course[0]['Course']['profession_id']];
		echo ' <b>Курс</b> '.$course[0]['Course']['name'];
		echo ' <b>Група</b> '.$studentgroup[0]['Studentgroup']['name'];
	?> 		
	<hr />
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
 		<tr>
 		<td width="25%">Тип приказа</td>
 		<td width="5%">&nbsp;</td>
 		<td width="75%"><?php  echo $form->input('ordertype_id', array('label' => ''));
 		?></td>
    </tr>
 		  <tr>
 		    <td width="25%">Дата приказа</td>
 		    <td width="5%">&nbsp;</td>
 		    <td width="75%"><?php echo $form->input('date', array('label' => '')); 
 		 ?></td>
    </tr>
 		  <tr>
 		    <td width="25%">Номер приказа</td>
 		    <td width="5%">&nbsp;</td>
 		    <td width="75%"><?php echo $form->input('number', array('label' => '')); 
 		 ?></td>
    </tr>
 		  <tr>
 		    <td width="25%">Дополнительная информация</td>
 		    <td width="5%">&nbsp;</td>
 		    <td width="75%"><?php echo $form->input('order_info', array('label' => '', 'size' => 50));
 		 ?></td>
    </tr>
 		  <tr>
 		    <td width="25%">&nbsp;</td>
 		    <td width="5%">&nbsp;</td>
 		    <td width="75%"><?php echo $form->end('Сохранить'); ?></td>
    </tr>
  </table>

	</fieldset>

</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Order.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Order.id'))); ?></li>
		<li><?php echo $html->link(__('List Orders', true), array('action' => 'index'));?></li>
		<li><?php echo $html->link(__('List Ordertypes', true), array('controller' => 'ordertypes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Ordertype', true), array('controller' => 'ordertypes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Students', true), array('controller' => 'students', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Student', true), array('controller' => 'students', 'action' => 'add')); ?> </li>
	</ul>
</div>
